package com.logistics.team3.test;


import java.util.List;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.logistics.team3.po.User;
import com.logistics.team3.service.UserService;

public class tttt {
	
	
	@SuppressWarnings("resource")
	public static void main(String[] args) {
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext(
				"applicationContext.xml");
		// 通过工厂获得类:
		UserService userService = (UserService) applicationContext
				.getBean("userService");
		List<User> users=userService.findAll();
		System.out.println(users);
	}

	
}
